import React, { FC, useCallback, useState } from "react"
import { text } from "stream/consumers"
const Demo: FC = () => {
  const [text, setText] = useState("hello")
  const fn1 = () => console.log("fn1 text", text)
  const fn2 = useCallback(() => {
    console.log("fn2", text)
  }, [text])
  return <>
    <div>
        <button></button>
    </div>
  </>
}
export default Demo
